package com.gosilver.beans.factory.config;

import com.gosilver.beans.PropertyValues;

/**
 *  Bean 定义类
 */
@SuppressWarnings({"rawtypes"})
public class BeanDefinition {

    /**
     * 在 Bean 注册的时候只注册一个类信息
     */
    private Class beanClass;

    /**
     * 属性信息
     */
    private PropertyValues propertyValues;


    public BeanDefinition(Class beanClass) {
        this.beanClass = beanClass;
        this.propertyValues = new PropertyValues();
    }

    public BeanDefinition(Class beanClass, PropertyValues propertyValues) {
        this.beanClass = beanClass;
        this.propertyValues = propertyValues != null ? propertyValues : new PropertyValues();
    }

    public Class getBeanClass() {
        return this.beanClass;
    }

    public void setBeanClass(Class beanClass) {
        this.beanClass = beanClass;
    }

    public PropertyValues getPropertyValues() {
        return this.propertyValues;
    }

    public void setBeanClass(PropertyValues propertyValues) {
        this.propertyValues = propertyValues;
    }
}
